import request from '@/utils/request'

// 查询出售记录详细记录列表
export function listSellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/list',
    method: 'get',
    params: query
  })
}


// 查询收购记录详细记录列表
export function dailySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/daily',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function dailySummarySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/dailySummary',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function monthlySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/monthly',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function monthlySummarySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/monthlySummary',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function yearlySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/yearly',
    method: 'get',
    params: query
  })
}

// 查询收购记录详细记录列表
export function yearlySummarySellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/yearlySummary',
    method: 'get',
    params: query
  })
}

// 查询出售记录详细记录详细
export function getSellRecordDetailLog(id) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/' + id,
    method: 'get'
  })
}

// 新增出售记录详细记录
export function addSellRecordDetailLog(data) {
  return request({
    url: '/console/rpt/sellRecordDetailLog',
    method: 'post',
    data: data
  })
}

// 修改出售记录详细记录
export function updateSellRecordDetailLog(data) {
  return request({
    url: '/console/rpt/sellRecordDetailLog',
    method: 'put',
    data: data
  })
}

// 删除出售记录详细记录
export function delSellRecordDetailLog(id) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/' + id,
    method: 'delete'
  })
}

// 导出出售记录详细记录
export function exportSellRecordDetailLog(query) {
  return request({
    url: '/console/rpt/sellRecordDetailLog/export',
    method: 'get',
    params: query
  })
}
